#include <iostream>

using namespace std;

int main() {
	bool a;
	cin >> a;
	cout << (int)a << endl;
	return 0;
}